<?php

define('API_ROOT_PATH', dirname(__FILE__));
define('ROOT_PATH', API_ROOT_PATH . '/../../');
include(ROOT_PATH . '/eccore/ecmall.php');
include API_ROOT_PATH . '/api.php';
//include(ROOT_PATH . '/share_config.php'); //2010-4-6 add by chenxiaowei 共享目录配置文件

/* 定义配置信息 */
ecm_define(SHARE_DATA_PATH . '/data/config.inc.php');

/* 启动API */
Api::startup(
    array(
        'default_app' => 'default',
        'default_act' => 'index',
        'app_root' => API_ROOT_PATH . '/app',
        'external_libs' => array(
            ROOT_PATH . '/includes/global.lib.php',
            ROOT_PATH . '/includes/libraries/time.lib.php',
            ROOT_PATH . '/includes/ecapp.base.php',
            ROOT_PATH . '/includes/plugin.base.php',
            API_ROOT_PATH . '/app/api.base.php',
            API_ROOT_PATH . '/include/global.functions.php',
            API_ROOT_PATH . '/include/apiError.php',
            ROOT_PATH . '/app/frontend.base.php',
            ROOT_PATH . '/includes/subdomain.inc.php',
        ),
    )
);